<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<link href="./css/common.css" rel="stylesheet"  />
<link href="../../css/buttons.css" rel="stylesheet"  />
<script type="text/javascript" src="../../js/util.js"></script>
<script type="text/javascript" src="../../js/new-ajax.js"></script>
<script type="text/javascript">
function checkForm(frm){
	var sitename=frm['sitename'];
	var url=frm['url'];
	if(!new FieldValidate(sitename).tminlen(2,"网站名称")){
		return false;
	}
	if(!new FieldValidate(url).tminlen(15,"网站名称")){
		return false;
	}
	
	return true;
}
</script>
</head>
<body>
<form action="#" method="post" id="editForm" onsubmit="return checkForm(this)">
<table cellpadding="0" cellspacing="1" border="0" width="100%">
	<tr class="th">
		<td colspan="2">录入友情网站</td>
	</tr>
	<tr class="tb">
		<td width="80">网站名称：</td>
		<td><input type="text" size="70" name="sitename" id="sitename" /></td>
	</tr>
	<tr class="tb">
		<td width="80">网址：</td>
		<td><input type="text" size="70" value="http://" name="url" id="url" /></td>
	</tr>
	<tr class="tb">
		<td width="80">LOGO：</td>
		<td><input type="file" name="logo" id="logo" /></td>
	</tr>
	<tr class="tb">
		<td>备注：</td>
		<td><textarea name="remark" id="remark" cols="80" rows="5"></textarea></td>
	</tr>
	<tr class="tf">
		<td colspan="2">
			<input type="submit" value="" class="submit"/>
			<input type="reset" value="" class="reset"/>
		</td>
	</tr>
</table>
</form>
</body>
</html>